package com.msjh.vueservice.controller;

import com.msjh.vueservice.common.R;
import com.msjh.vueservice.entity.Datastatistic;
import com.msjh.vueservice.entity.EduTeacher;
import com.msjh.vueservice.service.DatastatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zy
 * @since 2022-06-13
 */
@RestController
@RequestMapping("/datastatistic")
@CrossOrigin
public class DatastatisticController {

    @Autowired
    private DatastatisticService datastatisticService;

    @GetMapping("/list")
    public R getAllDatastatistics(){
        return R.ok().data("datastatistics",datastatisticService.getAllDatastatistics());
    }

}

